// noinspection Annotator
import { defineStore } from 'pinia'
import { useUserStore } from '@/store/useUserStore'
import {useMenuStore} from '@/store/useMenuStore'
// noinspection Annotator
export const useStore = defineStore('storeId', {
  state: () => {
    return {
      user: useUserStore(),
      menu: useMenuStore()
    }
  },
  actions: {},
  getters: {},
  persist: {
    enabled: true,
    strategies: [
      {
        storage: localStorage,
        paths: ['user']
      },
      {
        storage: localStorage,
        paths: ['menu']
      }
    ]
  }
})
